Integrand size = 18, antiderivative size = 182 \[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=-\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x}-\frac {b d \text {Chi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right ) \sinh \left (a-b \sqrt {c}\right )}{2 \sqrt {c}}+\frac {b d \text {Chi}\left (b \left (\sqrt {c}-\sqrt {c+d x}\right )\right ) \sinh \left (a+b \sqrt {c}\right )}{2 \sqrt {c}}-\frac {b d \cosh \left (a+b \sqrt {c}\right ) \text {Shi}\left (b \left (\sqrt {c}-\sqrt {c+d x}\right )\right )}{2 \sqrt {c}}-\frac {b d \cosh \left (a-b \sqrt {c}\right ) \text {Shi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right )}{2 \sqrt {c}} \]
[Out]
Time = 0.27 (sec) , antiderivative size = 182, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5473, 5397, 5388, 3384, 3379, 3382} \[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=-\frac {b d \sinh \left (a-b \sqrt {c}\right ) \text {Chi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right )}{2 \sqrt {c}}+\frac {b d \sinh \left (a+b \sqrt {c}\right ) \text {Chi}\left (b \left (\sqrt {c}-\sqrt {c+d x}\right )\right )}{2 \sqrt {c}}-\frac {b d \cosh \left (a+b \sqrt {c}\right ) \text {Shi}\left (b \left (\sqrt {c}-\sqrt {c+d x}\right )\right )}{2 \sqrt {c}}-\frac {b d \cosh \left (a-b \sqrt {c}\right ) \text {Shi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right )}{2 \sqrt {c}}-\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x} \]
[In]
[Out]
Rule 3379
Rule 3382
Rule 3384
Rule 5388
Rule 5397
Rule 5473
Rubi steps \begin{align*} \text {integral}& = d \text {Subst}\left (\int \frac {\cosh \left (a+b \sqrt {x}\right )}{(-c+x)^2} \, dx,x,c+d x\right ) \\ & = (2 d) \text {Subst}\left (\int \frac {x \cosh (a+b x)}{\left (c-x^2\right )^2} \, dx,x,\sqrt {c+d x}\right ) \\ & = -\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x}-(b d) \text {Subst}\left (\int \frac {\sinh (a+b x)}{c-x^2} \, dx,x,\sqrt {c+d x}\right ) \\ & = -\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x}-(b d) \text {Subst}\left (\int \left (\frac {\sinh (a+b x)}{2 \sqrt {c} \left (\sqrt {c}-x\right )}+\frac {\sinh (a+b x)}{2 \sqrt {c} \left (\sqrt {c}+x\right )}\right ) \, dx,x,\sqrt {c+d x}\right ) \\ & = -\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x}-\frac {(b d) \text {Subst}\left (\int \frac {\sinh (a+b x)}{\sqrt {c}-x} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {c}}-\frac {(b d) \text {Subst}\left (\int \frac {\sinh (a+b x)}{\sqrt {c}+x} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {c}} \\ & = -\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x}-\frac {\left (b d \cosh \left (a-b \sqrt {c}\right )\right ) \text {Subst}\left (\int \frac {\sinh \left (b \sqrt {c}+b x\right )}{\sqrt {c}+x} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {c}}+\frac {\left (b d \cosh \left (a+b \sqrt {c}\right )\right ) \text {Subst}\left (\int \frac {\sinh \left (b \sqrt {c}-b x\right )}{\sqrt {c}-x} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {c}}-\frac {\left (b d \sinh \left (a-b \sqrt {c}\right )\right ) \text {Subst}\left (\int \frac {\cosh \left (b \sqrt {c}+b x\right )}{\sqrt {c}+x} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {c}}-\frac {\left (b d \sinh \left (a+b \sqrt {c}\right )\right ) \text {Subst}\left (\int \frac {\cosh \left (b \sqrt {c}-b x\right )}{\sqrt {c}-x} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {c}} \\ & = -\frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x}-\frac {b d \text {Chi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right ) \sinh \left (a-b \sqrt {c}\right )}{2 \sqrt {c}}+\frac {b d \text {Chi}\left (b \sqrt {c}-b \sqrt {c+d x}\right ) \sinh \left (a+b \sqrt {c}\right )}{2 \sqrt {c}}-\frac {b d \cosh \left (a-b \sqrt {c}\right ) \text {Shi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right )}{2 \sqrt {c}}-\frac {b d \cosh \left (a+b \sqrt {c}\right ) \text {Shi}\left (b \sqrt {c}-b \sqrt {c+d x}\right )}{2 \sqrt {c}} \\ \end{align*}
Time = 1.03 (sec) , antiderivative size = 204, normalized size of antiderivative = 1.12 \[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=-\frac {e^{-a} \left (2 \sqrt {c} e^{-b \sqrt {c+d x}}+2 \sqrt {c} e^{2 a+b \sqrt {c+d x}}+b d e^{-b \sqrt {c}} x \operatorname {ExpIntegralEi}\left (b \left (\sqrt {c}-\sqrt {c+d x}\right )\right )-b d e^{2 a+b \sqrt {c}} x \operatorname {ExpIntegralEi}\left (b \left (-\sqrt {c}+\sqrt {c+d x}\right )\right )-b d e^{b \sqrt {c}} x \operatorname {ExpIntegralEi}\left (-b \left (\sqrt {c}+\sqrt {c+d x}\right )\right )+b d e^{2 a-b \sqrt {c}} x \operatorname {ExpIntegralEi}\left (b \left (\sqrt {c}+\sqrt {c+d x}\right )\right )\right )}{4 \sqrt {c} x} \]
[In]
[Out]
\[\int \frac {\cosh \left (a +b \sqrt {d x +c}\right )}{x^{2}}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 317 vs. \(2 (142) = 284\).
Time = 0.26 (sec) , antiderivative size = 317, normalized size of antiderivative = 1.74 \[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=-\frac {4 \, c \cosh \left (\sqrt {d x + c} b + a\right ) - {\left (\sqrt {b^{2} c} d x {\rm Ei}\left (\sqrt {d x + c} b - \sqrt {b^{2} c}\right ) - \sqrt {b^{2} c} d x {\rm Ei}\left (-\sqrt {d x + c} b + \sqrt {b^{2} c}\right )\right )} \cosh \left (a + \sqrt {b^{2} c}\right ) + {\left (\sqrt {b^{2} c} d x {\rm Ei}\left (\sqrt {d x + c} b + \sqrt {b^{2} c}\right ) - \sqrt {b^{2} c} d x {\rm Ei}\left (-\sqrt {d x + c} b - \sqrt {b^{2} c}\right )\right )} \cosh \left (-a + \sqrt {b^{2} c}\right ) - {\left (\sqrt {b^{2} c} d x {\rm Ei}\left (\sqrt {d x + c} b - \sqrt {b^{2} c}\right ) + \sqrt {b^{2} c} d x {\rm Ei}\left (-\sqrt {d x + c} b + \sqrt {b^{2} c}\right )\right )} \sinh \left (a + \sqrt {b^{2} c}\right ) - {\left (\sqrt {b^{2} c} d x {\rm Ei}\left (\sqrt {d x + c} b + \sqrt {b^{2} c}\right ) + \sqrt {b^{2} c} d x {\rm Ei}\left (-\sqrt {d x + c} b - \sqrt {b^{2} c}\right )\right )} \sinh \left (-a + \sqrt {b^{2} c}\right )}{4 \, c x} \]
[In]
[Out]
\[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=\int \frac {\cosh {\left (a + b \sqrt {c + d x} \right )}}{x^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=\int { \frac {\cosh \left (\sqrt {d x + c} b + a\right )}{x^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=\int { \frac {\cosh \left (\sqrt {d x + c} b + a\right )}{x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cosh \left (a+b \sqrt {c+d x}\right )}{x^2} \, dx=\int \frac {\mathrm {cosh}\left (a+b\,\sqrt {c+d\,x}\right )}{x^2} \,d x \]
[In]
[Out]